You should understand that all '_path' helpers generated from route. Rb file. So in your case route will generate this helper users_relationship_path for show action But in your form you're using just form_for @relationship which is expected to use relationship_path helper So you should tell your form helper to use nesting, like this: %= form_for @rel_user, @relationship do |f| %.
You should understand that all '_path' helpers generated from route. Rb file. So in your case route will generate this helper users_relationship_path for show action.
But in your form you're using just form_for @relationship which is expected to use relationship_path helper. So you should tell your form helper to use nesting, like this.
– NoahClark Oct 28 at 19:09 1 It depends on how many users you have, maybe you're right so I fixed my answer. – megas Oct 28 at 19:26 Do you just need an instance of user and relationship to pass into the form? Or why do I use @rel_user and not @current_user?
I've tested them and they both seem to work. – NoahClark Oct 28 at 20:29 1 @NoahClark: There's no reason to use one or the other. All that is required for the first element in that array is an object that is of the User class.
The second object has to be an object of the Relationship class. – Ryan Bigg Oct 28 at 21:11 @NoahClark, I get '@rel_user' from your code, you better know what is a user.As I understood you have several users and for every of them you want to have the relationships. – megas Oct 28 at 21:44.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.